﻿using System;

namespace SharpSqlAnalyzer.nodes
{
	// Token: 0x02000326 RID: 806
	public class TOrderBy : TParseTreeNode
	{
		// Token: 0x170006AF RID: 1711
		// (get) Token: 0x06001CD9 RID: 7385 RVA: 0x0033239B File Offset: 0x0033059B
		// (set) Token: 0x06001CD8 RID: 7384 RVA: 0x00332392 File Offset: 0x00330592
		public virtual bool Siblings
		{
			get
			{
				return this.siblings;
			}
			set
			{
				this.siblings = value;
			}
		}

		// Token: 0x170006B0 RID: 1712
		// (get) Token: 0x06001CDA RID: 7386 RVA: 0x003323A3 File Offset: 0x003305A3
		// (set) Token: 0x06001CDB RID: 7387 RVA: 0x003323AB File Offset: 0x003305AB
		public virtual TExpression ResetWhenCondition
		{
			get
			{
				return this.resetWhenCondition;
			}
			set
			{
				this.resetWhenCondition = value;
			}
		}

		// Token: 0x170006B1 RID: 1713
		// (get) Token: 0x06001CDC RID: 7388 RVA: 0x003323B4 File Offset: 0x003305B4
		// (set) Token: 0x06001CDD RID: 7389 RVA: 0x003323CF File Offset: 0x003305CF
		public virtual TOrderByItemList Items
		{
			get
			{
				if (this.items == null)
				{
					this.items = new TOrderByItemList();
				}
				return this.items;
			}
			set
			{
				this.items = value;
			}
		}

		// Token: 0x06001CDE RID: 7390 RVA: 0x003323D8 File Offset: 0x003305D8
		public override void init(object arg1)
		{
			this.items = (TOrderByItemList)arg1;
		}

		// Token: 0x06001CDF RID: 7391 RVA: 0x003323E6 File Offset: 0x003305E6
		public override void init(object arg1, object arg2)
		{
			this.init(arg1);
			this.resetWhenCondition = (TExpression)arg2;
		}

		// Token: 0x06001CE0 RID: 7392 RVA: 0x003323FB File Offset: 0x003305FB
		public override void doParse(TCustomSqlStatement psql, ESqlClause plocation)
		{
			this.items.doParse(psql, plocation);
		}

		// Token: 0x06001CE1 RID: 7393 RVA: 0x0033240A File Offset: 0x0033060A
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06001CE2 RID: 7394 RVA: 0x0033241A File Offset: 0x0033061A
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			this.Items.acceptChildren(v);
			v.postVisit(this);
		}

		// Token: 0x06001CE3 RID: 7395 RVA: 0x00332436 File Offset: 0x00330636
		[Obsolete("addOrderByItem() is deprecated, please use Items.addElement() instead.")]
		public virtual void addOrderByItem(string item)
		{
		}

		// Token: 0x04001A87 RID: 6791
		private bool siblings;

		// Token: 0x04001A88 RID: 6792
		private TExpression resetWhenCondition;

		// Token: 0x04001A89 RID: 6793
		private TOrderByItemList items;
	}
}
